#ifndef CATALOGUELISTMODEL_H
#define CATALOGUELISTMODEL_H

#include <QAbstractListModel>
#include <QStringList>

#include "contentinfo.h"

class CatalogueListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    CatalogueListModel(QObject* parent = nullptr);

    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    int rowCount(const QModelIndex &parent = QModelIndex()) const override;

    void setDataList(const QList<CatalogueItem>& list);
    CatalogueItem item(int row);

private:
    QList<CatalogueItem> _dataList;
};

#endif // CATALOGUELISTMODEL_H
